package com.csxy.six.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 阅读日志实体类
 * 对应数据库中的read_log表
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Schema(name="ReadLog对象", description="阅读日志")
public class ReadLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "阅读ID")
    @TableId(value = "read_id", type = IdType.AUTO)
    private Integer readId;

    @Schema(description = "用户ID")
    private Integer userId;

    @Schema(description = "公告ID")
    private Integer announceId;

    @Schema(description = "阅读时间")
    private Date readTime;
}